package org.example.simple.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 配置类
 * @author: Jone
 * @create: 2024-06-10
 */
@Configuration
public class AiConfig {

    @Bean
    ChatClient chatClient(ChatClient.Builder builder) {
        //可以设置默认的系统角色
        return builder.defaultSystem("这是技术类的问题")
                .build();
    }
}
